package com.itheima.service;

import com.itheima.common.Com.Setmeal;
import com.itheima.common.pojo.PageInfo;
import com.itheima.common.vo.SetmealDto;
import com.itheima.common.vo.SetmealVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService {
    SetmealVo getById(String id);

    PageInfo<Setmeal> page(String name, Integer page, Integer pageSize);

    boolean save(SetmealVo setmealVo);

    boolean update(SetmealVo setmealVo);

    boolean delete(String ids);

    boolean stop(Integer status,String ids);

    List<SetmealDto> getlist(String categoryId, Integer status);
}


